import request from '@/utils/request'

// 查询门禁管理-告警记录列表
export function listControlAlarmRecord(query) {
  return request({
    url: '/accessControl/alarmRecord/list',
    method: 'post',
    data: query
  })
}

// 查询门禁管理-告警记录数量
export function countControlAlarmRecord(query) {
  return request({
    url: '/accessControl/alarmRecord/count',
    method: 'post',
    data: query
  })
}

// 查询门禁管理-告警记录详细
export function getControlAlarmRecord(id) {
  return request({
    url: '/accessControl/alarmRecord/' + id,
    method: 'get'
  })
}

// 新增门禁管理-告警记录
export function addControlAlarmRecord(data) {
  return request({
    url: '/accessControl/alarmRecord',
    method: 'post',
    data: data
  })
}

// 修改门禁管理-告警记录
export function updateControlAlarmRecord(data) {
  return request({
    url: '/accessControl/alarmRecord',
    method: 'put',
    data: data
  })
}

// 删除门禁管理-告警记录
export function delControlAlarmRecord(id) {
  return request({
    url: '/accessControl/alarmRecord/' + id,
    method: 'delete'
  })
}

// 导出门禁管理-告警记录
export function exportControlAlarmRecord(query) {
  return request({
    url: '/accessControl/alarmRecord/export',
    method: 'post',
    data: query
  })
}

// 处理-告警记录
export function handleAlarmManagement(data) {
  return request({
    url: '/accessControl/alarmRecord/handle',
    method: 'put',
    data: data
  })
}

// 导出门禁管理-告警记录
export function getOperatorList(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    data: query
  })
}
